<?php
namespace Modules\Admin\Models;

class AuthDepts extends BaseApiModel
{
    protected $table = 'auth_depts';

    public function children()
    {
        return $this->hasMany(get_class($this), 'pid', 'id')->with('children');
    }
}
